﻿namespace Extensions.Web.UI
{
    using System;

    public abstract class EventTriggerControl : UserControl
    {
        protected EventTriggerControl()
        {
        }

        public string EventName
        {
            get
            {
                return ((this.ViewState["EventName"] != null) ? this.ViewState["EventName"].ToString() : "");
            }
            set
            {
                this.ViewState["EventName"] = value;
            }
        }

        public string SourceControlID
        {
            get
            {
                return ((this.ViewState["SourceControlID"] != null) ? this.ViewState["SourceControlID"].ToString() : "");
            }
            set
            {
                this.ViewState["SourceControlID"] = value;
            }
        }

        public string SourceControlType
        {
            get
            {
                return ((this.ViewState["SourceControlType"] != null) ? this.ViewState["SourceControlType"].ToString() : "");
            }
            set
            {
                this.ViewState["SourceControlType"] = value;
            }
        }
    }
}

